package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class ArticleColumn implements Serializable {

	private static final long serialVersionUID = -5599221100363105384L;

	//fields
	private java.lang.Integer id;
	private java.lang.String name;
	private java.lang.String page;
	private java.lang.String descr;
	private java.lang.Integer displayOrder;

	//default constructor
	public ArticleColumn() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getName() {
		return name;
	}
	public java.lang.String getPage() {
		return page;
	}
	public java.lang.String getDescr() {
		return descr;
	}
	public java.lang.Integer getDisplayOrder() {
		return displayOrder;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setName(java.lang.String name) {
		this.name = name;
	}
	public void setPage(java.lang.String page) {
		this.page = page;
	}
	public void setDescr(java.lang.String descr) {
		this.descr = descr;
	}
	public void setDisplayOrder(java.lang.Integer displayOrder) {
		this.displayOrder = displayOrder;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof ArticleColumn))
			return false;

		final ArticleColumn articleColumn = (ArticleColumn)other;
		if (!this.id.equals(articleColumn.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("ArticleColumn[")
			.append("id=").append(id).append(", ")
			.append("name=").append(name).append(", ")
			.append("page=").append(page).append(", ")
			.append("descr=").append(descr).append(", ")
			.append("displayOrder=").append(displayOrder).append("]").toString();
	}
}